import request from '../utils/request'

export const insertComment = (comment, answerId) => {
	return request({
		url: `answers/${answerId}/comments`,
		method: 'POST',
		data: comment,
	})
}

export const listComments = (answerId) => {
	return request({
		url: `answers/${answerId}/comments`,
		method: 'GET',
	})
}
